//
//  LYMoneyViewCell.m
//  artist
//
//  Created by Jay_Apple on 16/5/4.
//  Copyright © 2016年 viviyoo. All rights reserved.
//

#import "LYMoneyViewCell.h"
#import "LYMyAccountListModel.h"
#import "NSDate+Utils.h"
@interface LYMoneyViewCell ()


@property (weak, nonatomic) IBOutlet UIImageView *icon;

@property (weak, nonatomic) IBOutlet UILabel *title;

@property (weak, nonatomic) IBOutlet UILabel *content;

@property (weak, nonatomic) IBOutlet UILabel *time;

@property (weak, nonatomic) IBOutlet UILabel *price;


@end


@implementation LYMoneyViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setModel:(LYMyAccountListModel *)model{

    _model = model;
    
    [self.icon setHeader:_model.head_pic];
    self.title.text = _model.nick_name;
    self.content.text = _model.title;
    
    NSDate *date = [NSDate dateFromTimeStampString:_model.pay_time];
    self.time.text = [date string];
    
    self.price.text = [NSString stringWithFormat:@"¥%@",_model.order_money];

}
@end
